package com.xyz.domain.model;

public class LotteryPeriodInfoModel {

    private String period;

    private Integer periodId;

    private String numberStr;

    private Integer number;

    private boolean singleMode;

    private boolean doubleMode;

    private Integer lastNumber;

    private Integer mod3Number;

    private Integer mod4Number;

    private Integer mod5Number;

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public Integer getPeriodId() {
        return periodId;
    }

    public void setPeriodId(Integer periodId) {
        this.periodId = periodId;
    }

    public String getNumberStr() {
        return numberStr;
    }

    public void setNumberStr(String numberStr) {
        this.numberStr = numberStr;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public boolean isSingleMode() {
        return this.number % 2 == 1;
    }

    public boolean isDoubleMode() {
        return this.number % 2 == 0;
    }

    public Integer getLastNumber() {
        return number % 10;
    }

    public Integer getMod3Number() {
        return number % 3;
    }

    public Integer getMod4Number() {
        return number % 4;
    }

    public Integer getMod5Number() {
        return number % 5;
    }

}
